package co.fitstart.market.service;

import java.util.Map;

import co.fitstart.entity.taste.BMIQuestion;
import co.fitstart.entity.taste.TasteSignUp;
import co.fitstart.entity.user.User;
import co.fitstart.market.entity.UserContext;

/**
 * 减肥减脂一元体验班
 * @author haiyan_xiao
 *
 */
public interface TasteService {
    
    /**
     * create BMI question
     * @param bmiQuestion
     * @return
     */
    public void createBMIQuestion(BMIQuestion bmiQuestion);
    
    /**
     * load BMI question
     * @param bmiQuestionId
     * @return
     */
    public BMIQuestion loadBMIQuestion(Long bmiQuestionId);
    
    /**
     * sign up
     * @param tasteSignUp
     */
    public void signUp(TasteSignUp tasteSignUp);
    
    /**
     * 
     * @param tasteSignUp
     * @param bmiQuestion
     * @param userContext
     * @return
     */
    public Map<String, Object> signUp(TasteSignUp tasteSignUp, BMIQuestion bmiQuestion, UserContext userContext);
    
    
    /**
     * load TasteSignUp by user
     * @param user
     * @return
     */
    public TasteSignUp loadTasteSignUp(User user);
}
